package com.hziee.cosmanage.manageandhr.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hziee.common.utils.PageUtils;
import com.hziee.common.utils.Query;

import com.hziee.cosmanage.manageandhr.dao.ViolationDao;
import com.hziee.cosmanage.manageandhr.entity.ViolationEntity;
import com.hziee.cosmanage.manageandhr.service.ViolationService;


@Service("violationService")
public class ViolationServiceImpl extends ServiceImpl<ViolationDao, ViolationEntity> implements ViolationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ViolationEntity> page = this.page(
                new Query<ViolationEntity>().getPage(params),
                new QueryWrapper<ViolationEntity>()
        );

        return new PageUtils(page);
    }

}